home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / effects / makeeffectslideshow / application files / comapplication.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.9 KB  |  75 lines

  1. //////////
  2. //
  3. //    File:        ComApplication.h
  4. //
  5. //    Contains:    Functions that could be overridden in a specific application.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based (heavily!) on the MovieShell code written by Apple DTS
  9. //
  10. //    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <4>         09/11/97    rtm        merged MacApplication.h and WinApplication.h
  15. //       <3>         08/21/97    rtm        begun adding Windows support
  16. //       <2>         11/27/96    rtm        conversion to personal coding style
  17. //       <1>         12/21/94    khs        first file
  18. //       
  19. //////////
  20.  
  21. #pragma once
  22.  
  23. //////////
  24. // header files
  25. //////////
  26.  
  27. #ifndef __QUICKTIMEVR__
  28. #include <QuickTimeVR.h>
  29. #endif
  30.  
  31. #ifndef __QTUtilities__
  32. #include "QTUtilities.h"
  33. #endif
  34.  
  35. #include <MediaHandlers.h>
  36. #include <Movies.h>
  37. #include <Resources.h>
  38. #include <Sound.h>
  39. #include <SoundComponents.h>
  40. #include <SoundSprocket.h>
  41. #include <TextUtils.h>
  42.  
  43. #include <string.h>
  44. #include <stdlib.h>
  45.  
  46. #if TARGET_OS_MAC
  47. #include <AppleEvents.h>
  48. #include "MacFramework.h"
  49. #include "AppConfiguration.h"
  50. #endif    // TARGET_OS_MAC
  51.  
  52. #if TARGET_OS_WIN32
  53. #include "WinFramework.h"
  54. #endif    // TARGET_OS_WIN32
  55.  
  56. #include "ComResource.h"
  57.  
  58. //////////
  59. // constants
  60. //////////
  61.  
  62. //////////
  63. // function prototypes
  64. //////////
  65.  
  66. #if TARGET_OS_MAC
  67. void                    InstallAppleEventHandlers (void);
  68. pascal OSErr            HandleOpenApplicationAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);            
  69. pascal OSErr            HandleOpenDocumentAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);
  70. pascal OSErr            HandlePrintDocumentAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);
  71. pascal OSErr            HandleQuitApplicationAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);
  72. #endif    // TARGET_OS_MAC
  73.  
  74. // the other function prototypes are in the file MacFramework.h or WinFramework.h
  75.